package behavioral_pattern.command_pattern.test1;

/**
 * 最小化命令类:具体命令类
 */

public class MinimizeCommand extends Command {

    private WindowHandler windowHandler;//维持对请求接收者的引用

    public MinimizeCommand(){
        windowHandler = new WindowHandler();
    }

    @Override
    public void execute() {
        windowHandler.minimize();
    }
}
